export function pieOpt(arg1) {
  let opt = {
    legend: {
      top: 'bottom'
    },
    toolbox: {
      show: true,
      feature: {
        mark: { show: true },
        dataView: { show: true, readOnly: false },
        restore: { show: true },
        saveAsImage: { show: true }
      }
    },
    series: [
      {
        name: 'Nightingale Chart',
        type: 'pie',
        radius: [50, 250],
        center: ['50%', '50%'],
        roseType: 'area',
        itemStyle: {
          borderRadius: 8
        },
        data: [
          { value: arg1[0], name: 'rose 1' },
          { value: arg1[1], name: 'rose 2' },
          { value: arg1[2], name: 'rose 3' },
          { value: arg1[3], name: 'rose 4' },
          { value: arg1[4], name: 'rose 5' },
          { value: arg1[5], name: 'rose 6' },
          { value: arg1[6], name: 'rose 7' },
          { value: arg1[7], name: 'rose 8' }
        ]
      }
    ]
  }
  return opt
}